﻿#ifndef MAINWIDGET_H
#define MAINWIDGET_H

#include "src/passive/passiveequipment.h"
#include "src/util/messageutil.h"
#include "src/util/conversionutil.h"
#include "src/util/parseutil.h"
#include "src/util/stringutil.h"
#include "src/util/uiutil.h"
#include "src/enum/secsenum.h"
#include "src/messagetext/text.h"
#include "src/ui/aboutwidget.h"

#include <QWidget>
#include <QRegularExpressionValidator>
#include <QRegularExpression>

namespace Ui {
class MainWidget;
}

class MainWidget : public QWidget
{
    Q_OBJECT

public:
    explicit MainWidget(QWidget *parent = nullptr);
    ~MainWidget();

private slots:
    void on_btn_ClearMessageLog_clicked();

    void on_btn_BindPort_clicked();

    void on_btn_S1F1_clicked();

    void on_btn_S1F13_clicked();

    void on_btn_S1F19_clicked();

    void on_btn_S2F1_clicked();

    void on_btn_S2F3_clicked();

    void on_btn_S2F5_clicked();

    void on_btn_S2F11_clicked();

    void on_btn_S2F17_clicked();

    void on_btn_S2F25_clicked();

    void on_btn_S5F1_clicked();

    void on_btn_S5F9_clicked();

    void on_btn_S5F11_clicked();

    void on_btn_S5F15_clicked();

    void on_btn_About_clicked();

    void on_btn_SelectReq_clicked();

    void on_btn_DeselectReq_clicked();

    void on_btn_LinkTestReq_clicked();

    void on_btn_DisConnect_clicked();

private:
    Ui::MainWidget *ui;
    PassiveEquipment* equipment;
    AboutWidget* aboutWidget = new AboutWidget();
};

#endif // MAINWIDGET_H
